﻿function JiXiao(model) {
    return {
        mbid: model ? model.mbid : 0,
        mbmc: model ? model.mbmc : "",
        mbtype: model ? model.mbtype : 1,
        cjsj: model ? model.cjsj : "",
        cjrname:model?model.cjrname:"",
        JiXiaoNeiRongs: new JiXiaoNeiRongs(model),
        jxtype:model?model.jxtype:1
    };
}
function JiXiaoNeiRongs(model) {
    var arr = [];
    if (model && model.JiXiaoNeiRongs) {
        $(model.JiXiaoNeiRongs).each(function (i, item) {
            arr.push(new sonjixiao(item));
        });
    }
    return arr;
}
function sonjixiao(model) {
    return {
        nrid: model ? model.nrid : 0,
        jxsx: model ? model.jxsx : 0,
        nr: model ? model.nr : "",
        jxfz: model ? model.jxfz : 0,
        jxhtml: model ? model.jxhtml : "",
        KaoHeFanWeis: new KaoHeFanWeis(model)
    };
}
function KaoHeFanWeis(model) {
    var arr = [];
    if (model && model.KaoHeFanWeis) {
        $(model.KaoHeFanWeis).each(function (i, item) {
            arr.push(new KeShi(item));
        });
    }
    return arr;
}